package com.dc.business.datacollectbusiness.service;

import com.dc.business.datacollectbusiness.entity.Company;
import com.dc.business.datacollectbusiness.entity.User;
import com.dc.business.datacollectbusiness.model.Companyarr;
import com.dc.business.datacollectbusiness.model.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface UserService {
    public User findUserByUsername(String userName);
    public List<User> findAllUsers(int page, int size,String companyName, String phoneNumber);
    public void insertUser(User user);
    public void updateUser(User user);
    public void deleteUserByUserId(Integer userId);

    /**
     * 删除多个用户
     */
    public boolean deleteUserByIdall(User user);

    /**
     * 通过id查询用户
     */
    public User getUserByid(int userId);

    /**
     * 通过用户名查询用户id
     */
    public int getUseridByuserName(String userName);

    /**
     * 通过公司名称查询用户个数
     */
    public int getUsersumByCompanyName(String companyName);



    //小程序
    /**
     * 修改密码
     */
    public boolean upPasswd(String companyName, String userName, String newPassword);
}
